
import Relay from "react-relay";
export default class GetProDigestList extends Relay.Mutation {

    static fragments = {};

    getMutation() {
        return Relay.QL`mutation { getProDigestList }`;
    }

    getVariables() { 
        return {
            argsInput: {
                pageSize: this.props.pageSize,
                pageNum: this.props.pageNum,
                enterpriseId: this.props.enterpriseId,
                styleNo: this.props.styleNo,
                uid: this.props.uid,
                operationId: this.props.operationId,
                pdId: this.props.pdId,
                customerName: this.props.customerName,
            }
        }
    }

   getFatQuery() {
    return Relay.QL`fragment on getProDigestListPayload {
            responseData {
                errorCode
                value
                totalResult
                id
                proDigestModelList{
                    status
                    customerName
                    traderName
                    finishDate
                    pdId
                    enterpriseId
                    liningPlan
                    prickle
                    number
                    imgURLREV
                    imgURLPOS
                    operationName
                    styleNo
                    accessoryPlan
                    orderId
                    operationId
                }
            }
        }`;
}

getConfigs() {
    return [{
        type: 'REQUIRED_CHILDREN',
        children: [Relay.QL`
               fragment on getProDigestListPayload  {
                    responseData {
                        errorCode
                        value
                        totalResult
                        id
                        proDigestModelList{
                            status
                            customerName
                            traderName
                            finishDate
                            pdId
                            enterpriseId
                            liningPlan
                            prickle
                            number
                            imgURLREV
                            imgURLPOS
                            operationName
                            styleNo
                            accessoryPlan
                            orderId
                            operationId
                        }
                    }
                 }
            `]
    }];
}

}
